home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / hips / sources / scale_geom / hips.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-17  |  1.1 KB  |  39 lines

  1.  
  2. /* $Header$ */
  3. #include <stdio.h>
  4. #include <hipl_format.h>
  5. #include "pixel.h"
  6.  
  7. typedef struct {
  8.     char name[25];    /* picture name */
  9.     short nchan;        /* number of channels (1=monochrome, 3=RGB) */
  10.     short ox, oy;        /* origin (upper left corner) of screen */
  11.     short dx, dy;        /* width and height of picture in pixels */
  12.     Pixel1 *ibuf;     /* pointer to the image buffer */ 
  13. } Hips;
  14.  
  15. Hips   *hips_open(/* file, mode */);
  16. void    hips_close(/* p */);
  17.  
  18. char    *hips_get_name(/* p */);
  19. void    hips_clear(/* p, pv */);
  20. void    hips_clear_rgba(/* p, r, g, b, a */);
  21.  
  22. void    hips_set_nchan(/* p, nchan */);
  23. void    hips_set_box(/* p, ox, oy, dx, dy */);
  24. void    hips_write_pixel(/* p, x, y, pv */);
  25. void    hips_write_pixel_rgba(/* p, x, y, r, g, b, a */);
  26. void    hips_write_row(/* p, y, x0, nx, buf */);
  27. void    hips_write_row_rgba(/* p, y, x0, nx, buf */);
  28.  
  29. int    hips_get_nchan(/* p */);
  30. void    hips_get_box(/* p, ox, oy, dx, dy */);
  31. Pixel1    hips_read_pixel(/* p, x, y */);
  32. void    hips_read_pixel_rgba(/* p, x, y, pv */);
  33. void    hips_read_row(/* p, y, x0, nx, buf */);
  34. void    hips_read_row_rgba(/* p, y, x0, nx, buf */);
  35.  
  36. #define XMAX 3000
  37. #define YMAX 3000
  38.  
  39.